import requestEdu from "@/utils/request_edu";
export default {
  getAllSubject() {
    return requestEdu({
      url: "/Learning/subject/subjectList",
      method: "get",
    });
  },
  getpageList(page, limit, CourseQueryDto) {
    return requestEdu({
      url: `/Learning/edu-course/front/${page}/${limit}`,
      method: "post",
      data: CourseQueryDto,
    });
  },
  getCourseDetail(courseId, token) {
    return requestEdu({
      url: `/edusevice/indexfront/CourseDetail/${courseId}/${token}`,
      method: "get",
    });
  },
  // 评论功能
  getUcenterInfo(comment) {
    return requestEdu({
      url: `/Learning/edu-comment/saveComment`,
      method: "post",
      data: comment,
    });
  },
  getComment(courseId, teacherId) {
    return requestEdu({
      url: `/Learning/edu-comment/getComment/${courseId}/${teacherId}`,
      method: "get",
    });
  },
};
